package com.jboa.dao;

import java.util.List;

import com.jboa.model.Email;



public interface EmailDao {
	public List<Email> findAll(String username);
	
	public void delete(int id);
	
	public Email get(int id);
	
	public void save(Email email);
	
	public List<Email> findByCondition(String hql, Object[] values);

	public void update(Email email);

	public int getTotalCount(String hql);

	public List<Email> findByCondition(Email email,
			int firstResult, int maxResults);
	
}
